package handlers

import (
	"github.com/gin-gonic/gin"
	"goods-master/models"
)

func ListGoodsText(c *gin.Context) {
	var data []models.GoodsText

	models.DB.Find(&data)

	c.JSON(200, gin.H{
		"code": 200,
		"msg":  "展示成功",
		"data": data,
	})
	return
}
